﻿<UserControl x:Class="Microsoft.Research.ScientificWorkflow.ManagementStudioControls.WorkflowManagerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
         <HierarchicalDataTemplate x:Key="ParentActivityTemplate" ItemsSource="{Binding Path=Children}">
           <TextBlock Text="{Binding Path=FilterDisplayName}" AutomationProperties.AutomationId="{Binding Path=FilterDisplayName}"></TextBlock>
         </HierarchicalDataTemplate>
    </UserControl.Resources>
    <Grid>
        <TabControl IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource TabControlStyle2}" Margin="0,0,0,5">
            <TabItem Header="Workflow Manager" Style="{DynamicResource InsideTabItemStyle}">
                <Grid>
                    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,5">
                        <TreeView SelectedItemChanged="filterHost_SelectedItemChanged" x:Name="filterHost" ItemContainerStyle="{DynamicResource TreeViewItemStyle1}" ItemTemplate="{StaticResource ParentActivityTemplate}" ItemsSource="{Binding Path=Filters}"></TreeView>
                    </ScrollViewer>
                </Grid>
            </TabItem>
            <TabItem Header="Search" Style="{DynamicResource InsideTabItemStyle}">
                <Grid x:Name="SearchControlHolder">
   
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
